//
//  UILabel+ACCommon.h
//  AcmedcareCore
//
//  Created by AcZx on 2018/3/9.
//

#import <UIKit/UIKit.h>

@interface UILabel (ACCommon)
/**
 已知区域,重新调整
 */
- (CGSize)contentSize;

/**
 不知区域,通过其设置区域
 */
- (CGSize)textSizeIn:(CGSize)size;

/**
 label 初始化
 */
+ (instancetype)label;
+ (instancetype)labelWith:(NSString *)text;
+ (instancetype)labelWith:(NSString *)text textColor:(UIColor *)color;
+ (instancetype)labelWith:(NSString *)text textColor:(UIColor *)color backgroundColor:(UIColor *)bgColor;
+ (instancetype)centerlabelWith:(NSString *)text;
+ (instancetype)labelWith:(NSString *)text font:(CGFloat)size;
+ (instancetype)labelWith:(NSString *)text font:(CGFloat)size textColor:(UIColor *)textColor;
+ (instancetype)labelWith:(NSString *)text boldFont:(CGFloat)size;
+ (instancetype)centerlabelWith:(NSString *)text font:(CGFloat)size;
+ (instancetype)centerlabelWith:(NSString *)text font:(CGFloat)size textColor:(UIColor *)textColor;
+ (instancetype)centerlabelWith:(NSString *)text boldFont:(CGFloat)size;

@end




@interface InsetLabel : UILabel

@property (nonatomic, assign) UIEdgeInsets contentInset;

@end


